package com.csp.session;

import com.csp.session.impl.SqlSessionFactoryImpl;

/**
 * 单例模式sqlsession工厂
 *
 * @author:chengsp
 * @createTime:2019/8/22 13:19
 */
public class SqlSessionFactoryInstance {
    private SqlSessionFactoryInstance() {
    }

    private final static SqlSessionFactory SQL_SESSION_FACTORY = new SqlSessionFactoryImpl();

    public static SqlSessionFactory getInstance() {
        return SQL_SESSION_FACTORY;
    }
}
